# 主要存储全局变量。



import os.path
import sys

DEBUG=0
ProjectDir = os.path.dirname(os.path.realpath(sys.argv[0])) + '/'
WorkDir = ProjectDir + 'monitor_data/'
Index = WorkDir + 'index'   # 索引文件的地址
Queue = []  # 本次任务的URL队列
Logfile = WorkDir + 'log.txt'


# DEBUG测试参数
# if DEBUG == 1:
#     print("ProjectDir：", ProjectDir)
if DEBUG == 1:
    url = "https://update.cs2c.com.cn/NS/V10/V10SP1/os/adv/lic/base/aarch64/Packages/"
    # record_data_path = ProjectDir + 'index'
    # record_data_list = ['1','2']
    # index = ProjectDir + 'index'